package com.thinkingstar.iads.datacenter.entity;

import java.io.Serializable;
import java.util.List;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Many;
import org.nutz.dao.entity.annotation.ManyMany;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

import com.thinkingstar.iads.common.entity.AbstractEntites;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/***
 * @ClassName: dc_equipment 
 * @Description: 数据中心_设备_设备概述
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Comment("数据中心_设备_厂商设备")
@Table("dc_manufacturer_equipment")
public class DcManufacturerEquipment extends AbstractEntites implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	@Comment("设备id")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	protected String equipment_id;
	
	@Comment("厂商设备名称")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 50)
	protected String manufacturer_equipment_name;
	
	@Comment("设备厂商id")
	@Column	
	@ColDefine(type = ColType.VARCHAR, width = 32)
	protected String equipment_manufacturer_id;
	
	@Comment("设备厂商名称")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 50)
	protected String equipment_manufacturer_name;
	
	@Comment("设备单价")
	@Column
	@ColDefine(type = ColType.VARCHAR , width = 10)
	protected String equipment_price;
	
	@Comment("设备功率")
	@Column
	@ColDefine(type = ColType.VARCHAR , width = 10)
	protected String equipment_power;
	
	@Comment("设备型号")
	@Column
	@ColDefine(type = ColType.VARCHAR , width = 100)
	protected String equipment_model;
	
	/**
	 * 指定一对多的映射关系
	 */
	@ApiModelProperty(value="dmef",hidden=true)
	@Many(field = "manfacturer_equipment_id")
	private List<DcManufacturerEquipmentField> dmef;
	
}
